home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / program / knobvb25.zip / VB.ZIP / KSHAPE.FRM < prev    next >
Text File  |  1996-01-17  |  10KB  |  315 lines

  1. VERSION 2.00
  2. Begin Form Shapedemo 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Knob Shape Properties Demo"
  6.    ClientHeight    =   3660
  7.    ClientLeft      =   1695
  8.    ClientTop       =   1500
  9.    ClientWidth     =   5415
  10.    FontBold        =   -1  'True
  11.    FontItalic      =   0   'False
  12.    FontName        =   "Arial"
  13.    FontSize        =   8.25
  14.    FontStrikethru  =   0   'False
  15.    FontUnderline   =   0   'False
  16.    Height          =   4065
  17.    Left            =   1635
  18.    LinkTopic       =   "Form1"
  19.    MDIChild        =   -1  'True
  20.    ScaleHeight     =   3660
  21.    ScaleWidth      =   5415
  22.    Top             =   1155
  23.    Width           =   5535
  24.    Begin Frame Frame4 
  25.       BackColor       =   &H00C0C0C0&
  26.       Caption         =   "Knob Color"
  27.       FontBold        =   -1  'True
  28.       FontItalic      =   0   'False
  29.       FontName        =   "Arial"
  30.       FontSize        =   8.25
  31.       FontStrikethru  =   0   'False
  32.       FontUnderline   =   0   'False
  33.       Height          =   1170
  34.       Left            =   3120
  35.       TabIndex        =   9
  36.       Top             =   435
  37.       Width           =   1305
  38.       Begin Label HColors 
  39.          BackColor       =   &H00000000&
  40.          Height          =   225
  41.          Index           =   0
  42.          Left            =   285
  43.          TabIndex        =   18
  44.          Top             =   330
  45.          Width           =   225
  46.       End
  47.       Begin Label HColors 
  48.          BackColor       =   &H00808080&
  49.          Height          =   225
  50.          Index           =   5
  51.          Left            =   735
  52.          TabIndex        =   17
  53.          Top             =   555
  54.          Width           =   225
  55.       End
  56.       Begin Label HColors 
  57.          BackColor       =   &H00FFFFFF&
  58.          Height          =   225
  59.          Index           =   1
  60.          Left            =   510
  61.          TabIndex        =   16
  62.          Top             =   330
  63.          Width           =   225
  64.       End
  65.       Begin Label HColors 
  66.          BackColor       =   &H000000FF&
  67.          Height          =   225
  68.          Index           =   6
  69.          Left            =   285
  70.          TabIndex        =   15
  71.          Top             =   780
  72.          Width           =   225
  73.       End
  74.       Begin Label HColors 
  75.          BackColor       =   &H0000FF00&
  76.          Height          =   225
  77.          Index           =   2
  78.          Left            =   735
  79.          TabIndex        =   14
  80.          Top             =   330
  81.          Width           =   225
  82.       End
  83.       Begin Label HColors 
  84.          BackColor       =   &H0000FFFF&
  85.          Height          =   225
  86.          Index           =   7
  87.          Left            =   510
  88.          TabIndex        =   13
  89.          Top             =   780
  90.          Width           =   225
  91.       End
  92.       Begin Label HColors 
  93.          BackColor       =   &H00FF0000&
  94.          Height          =   225
  95.          Index           =   3
  96.          Left            =   285
  97.          TabIndex        =   12
  98.          Top             =   555
  99.          Width           =   225
  100.       End
  101.       Begin Label HColors 
  102.          BackColor       =   &H00FF00FF&
  103.          Height          =   225
  104.          Index           =   8
  105.          Left            =   735
  106.          TabIndex        =   11
  107.          Top             =   780
  108.          Width           =   225
  109.       End
  110.       Begin Label HColors 
  111.          BackColor       =   &H000080FF&
  112.          Height          =   225
  113.          Index           =   4
  114.          Left            =   510
  115.          TabIndex        =   10
  116.          Top             =   555
  117.          Width           =   225
  118.       End
  119.    End
  120.    Begin Frame Frame2 
  121.       BackColor       =   &H00C0C0C0&
  122.       Caption         =   "Knob Style"
  123.       FontBold        =   -1  'True
  124.       FontItalic      =   0   'False
  125.       FontName        =   "Arial"
  126.       FontSize        =   8.25
  127.       FontStrikethru  =   0   'False
  128.       FontUnderline   =   0   'False
  129.       Height          =   1110
  130.       Left            =   3120
  131.       TabIndex        =   3
  132.       Top             =   1725
  133.       Width           =   2100
  134.       Begin OptionButton Option2 
  135.          BackColor       =   &H00C0C0C0&
  136.          Caption         =   "Circle"
  137.          FontBold        =   0   'False
  138.          FontItalic      =   0   'False
  139.          FontName        =   "Arial"
  140.          FontSize        =   8.25
  141.          FontStrikethru  =   0   'False
  142.          FontUnderline   =   0   'False
  143.          Height          =   225
  144.          Index           =   0
  145.          Left            =   180
  146.          TabIndex        =   8
  147.          Top             =   315
  148.          Width           =   900
  149.       End
  150.       Begin OptionButton Option2 
  151.          BackColor       =   &H00C0C0C0&
  152.          Caption         =   "Pointer"
  153.          FontBold        =   0   'False
  154.          FontItalic      =   0   'False
  155.          FontName        =   "Arial"
  156.          FontSize        =   8.25
  157.          FontStrikethru  =   0   'False
  158.          FontUnderline   =   0   'False
  159.          Height          =   225
  160.          Index           =   1
  161.          Left            =   180
  162.          TabIndex        =   7
  163.          Top             =   525
  164.          Width           =   900
  165.       End
  166.       Begin OptionButton Option2 
  167.          BackColor       =   &H00C0C0C0&
  168.          Caption         =   "Complex"
  169.          FontBold        =   0   'False
  170.          FontItalic      =   0   'False
  171.          FontName        =   "Arial"
  172.          FontSize        =   8.25
  173.          FontStrikethru  =   0   'False
  174.          FontUnderline   =   0   'False
  175.          Height          =   225
  176.          Index           =   2
  177.          Left            =   180
  178.          TabIndex        =   6
  179.          Top             =   735
  180.          Width           =   900
  181.       End
  182.       Begin OptionButton Option2 
  183.          BackColor       =   &H00C0C0C0&
  184.          Caption         =   "Faucet"
  185.          FontBold        =   0   'False
  186.          FontItalic      =   0   'False
  187.          FontName        =   "Arial"
  188.          FontSize        =   8.25
  189.          FontStrikethru  =   0   'False
  190.          FontUnderline   =   0   'False
  191.          Height          =   225
  192.          Index           =   3
  193.          Left            =   1080
  194.          TabIndex        =   5
  195.          Top             =   315
  196.          Width           =   900
  197.       End
  198.       Begin OptionButton Option2 
  199.          BackColor       =   &H00C0C0C0&
  200.          Caption         =   "User"
  201.          FontBold        =   0   'False
  202.          FontItalic      =   0   'False
  203.          FontName        =   "Arial"
  204.          FontSize        =   8.25
  205.          FontStrikethru  =   0   'False
  206.          FontUnderline   =   0   'False
  207.          Height          =   225
  208.          Index           =   4
  209.          Left            =   1080
  210.          TabIndex        =   4
  211.          Top             =   525
  212.          Width           =   900
  213.       End
  214.    End
  215.    Begin KNOB Knob1 
  216.       Angle           =   0
  217.       AutoRedraw      =   -1  'True
  218.       AVersion        =   2.5
  219.       BackgroundColor =   &H00C0C0C0&
  220.       BevelInner      =   1  ' 1 - Raised
  221.       BevelOuter      =   2  ' 2 - Inset
  222.       BevelWidth      =   2
  223.       BorderType      =   1  ' 1 - Bevel
  224.       BorderWidth     =   2
  225.       Digital         =   0   'False
  226.       DigitalColor    =   &H00000000&
  227.       DigitalDecimals =   0
  228.       DigitalFontID   =   0
  229.       DigitalX        =   0
  230.       DigitalY        =   0
  231.       FontID          =   0
  232.       FrameColor      =   &H00000000&
  233.       FrameScaleX     =   0
  234.       FrameScaleY     =   0
  235.       FrameStyle      =   0  ' 0 - None
  236.       Height          =   2595
  237.       KnobColor       =   &H00808080&
  238.       KnobMultiTurn   =   0   'False
  239.       KnobMultiTurnValue=   0
  240.       KnobRadius      =   0.6
  241.       KnobSnap        =   0   'False
  242.       KnobSnapIncrement=   1
  243.       KnobStyle       =   0  ' 0 - Cicular
  244.       KnobUserDefined =   "0,1000,200,800,50,700,500,-600,0,-500,-500,-600,-50,700,-200,800"
  245.       KnobValue       =   0
  246.       Left            =   135
  247.       MarkUserDefined =   ""
  248.       MouseControl    =   -1  'True
  249.       OutlineAlign    =   0  ' 0 - Left 
  250.       OutlineColor    =   &H00000000&
  251.       OutlineTitle    =   ""
  252.       OutlineWidth    =   0
  253.       Radius          =   0
  254.       TabIndex        =   2
  255.       Top             =   120
  256.       Value           =   0
  257.       Width           =   2760
  258.       XScale          =   0
  259.       YScale          =   0
  260.       ZLoad           =   KSHAPE.FRX:0000
  261.    End
  262.    Begin TextBox Text1 
  263.       Height          =   585
  264.       Left            =   180
  265.       MultiLine       =   -1  'True
  266.       TabIndex        =   0
  267.       Text            =   "0,1000,200,800,50,700,500,-600,0,-500,-500,-600,-50,700,-200,800"
  268.       Top             =   2985
  269.       Width           =   5085
  270.    End
  271.    Begin Label Label1 
  272.       AutoSize        =   -1  'True
  273.       BackStyle       =   0  'Transparent
  274.       Caption         =   "KnobUserDefined (x,y pair list)"
  275.       FontBold        =   -1  'True
  276.       FontItalic      =   0   'False
  277.       FontName        =   "Arial"
  278.       FontSize        =   8.25
  279.       FontStrikethru  =   0   'False
  280.       FontUnderline   =   0   'False
  281.       Height          =   210
  282.       Index           =   4
  283.       Left            =   180
  284.       TabIndex        =   1
  285.       Top             =   2745
  286.       Width           =   2490
  287.    End
  288. End
  289.  
  290. Sub Form_Load ()
  291.  
  292.     option2(knob1.KnobStyle) = True
  293.     text1 = knob1.KnobUserDefined
  294.  
  295. End Sub
  296.  
  297. Sub HColors_Click (index As Integer)
  298.  
  299.     knob1.KnobColor = HColors(index).BackColor
  300.  
  301. End Sub
  302.  
  303. Sub Option2_Click (index As Integer)
  304.  
  305.     knob1.KnobStyle = index
  306.  
  307. End Sub
  308.  
  309. Sub Text1_Change ()
  310.     
  311.     knob1.KnobUserDefined = text1
  312.  
  313. End Sub
  314.  
  315.